SplatMesh
PacletDirectoryLoad[NotebookDirectory[]];
<<CoffeeLiqueur`Workshop`SplatMesh`
mesh = Import[FileNameJoin[{"Examples", "butterfly.spz"}], "SPZ"]
mesh["Properties"]
mesh["Preview"]
Graphics3D[{
GeometricTransformation[
mesh, RotationMatrix[-75Degree, {1,1,0}]
]
}]
Graphics3D[{
Import[FileNameJoin[{"Examples", "tap.spz"}], "SPZ"]
}]
Transformations
rotated = TransformedSplat[
mesh, RotationMatrix[Pi/2, {1,0,0}] // N
];
Export["butterfly_rotated.spz", rotated, "SPZ"]
Append[mesh, {
{0.,0.,0.},
{0.01, 0.1, 0.9},
{.0, .0, .0, 1.0},
1.0,
{1.0,.0,.0}
}] // Graphics3D